CameraFocus = 
{
	type = "CameraFocus",

	Editor=
	{
		Model="Objects/Editor/T.cgf",
	},
};

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnInit()
	self:Activate(0);
end

function CameraFocus:OnReset()
	self:GotoState( "Inactive" );
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnContact( Entity )
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnDamage( Hit )
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnShutDown()
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnEvent( EventId, Params )
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnSave( stm )
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnLoad( stm )
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnWrite( stm )
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:OnRead( stm )
end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:Event_Enable()
	self:GotoState( "Active" );
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function CameraFocus:Event_Disable()
	self:GotoState( "Inactive" );
end

CameraFocus.Active =
{
	-------------------------------------------------------------------------------
	OnBeginState = function( self )
		self:Activate(1);
		--System.SetFocusPos( self:GetPos() );
	end,
	-------------------------------------------------------------------------------
	OnEndState = function( self )
		self:Activate(0);
	end,

	-------------------------------------------------------------------------------
	OnUpdate = function( self )
		--System.SetFocusPos( self:GetPos() );
	end,
}

CameraFocus.Inactive =
{
	-------------------------------------------------------------------------------
	OnBeginState = function( self )
		self:Activate(0);
	end,
}

CameraFocus.FlowEvents =
{
	Inputs =
	{
		Disable = { CameraFocus.Event_Disable, "bool" },
		Enable = { CameraFocus.Event_Enable, "bool" },
	},
	Outputs =
	{
		Disable = "bool",
		Enable = "bool",
	},
}
